package org.opsli.modulars.business.patrolRouteRecord.entity;

import com.alibaba.fastjson.JSON;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Test {

    public static void main(String[] args){
        List<Map> list=new ArrayList();
        Map map1=new HashMap();
        Map map2=new HashMap();
        Map map3=new HashMap();
        //113.51616,34.81715 轻工业大学
        //113.517067,34.813727 世界工厂网
        //113.521298,34.814008 科学大道
       /* map1.put("lt","113.51616");
        map1.put("ln","34.81715");
        map1.put("lo","轻工业大学");
        map2.put("lt","113.517067");
        map2.put("ln","34.813727");
        map2.put("lo","世界工厂网");
        map3.put("lt","113.521298");
        map3.put("ln","34.814008");
        map3.put("lo","科学大道");*/
        //113.511892,34.813326轻院驾校
        //113.511623,34.80811郑州工程
        //113.511659,34.805561国机集团
        map1.put("lt","113.511892");
        map1.put("ln","34.813326");
        map1.put("lo","轻院驾校");
        map2.put("lt","113.511623");
        map2.put("ln","34.80811");
        map2.put("lo","郑州工程");
        map3.put("lt","113.521298");
        map3.put("ln","34.814008");
        map3.put("lo","国机集团");
        list.add(map1);
        list.add(map2);
        list.add(map3);
        System.out.println(JSON.toJSONString(list));
        List<Map> userList = JSON.parseArray(JSON.toJSONString(list), Map.class);
        for(Map map:list){
            System.out.println(map.get("lo"));
        }

    }
}
